﻿@model iDMS.Models.Manufacturer
@using MvcHtmlHelpers

<div class="display-label">
    Name</div>
<div class="display-field">
    @Html.DisplayFor(model => model.Name)
</div>
<div class="display-label">
    Adress:</div>
<div class="display-field">
    @Html.DisplayFor(model => model.Adress)
</div>
<div class="display-label">
    City:</div>
<div class="display-field">
    @Html.DisplayFor(model => model.City)
</div>
<div class="display-label">
    Postal Code:</div>
<div class="display-field">
    @Html.DisplayFor(model => model.PostCode)
</div>
<div class="display-label">
    Country:</div>
<div class="display-field">
    @Html.DisplayFor(model => model.Country.Name)
    @Html.CountryFlag(Model.Country.ISO3166Alfa2)
</div>
<div class="display-label">
    Url</div>
<div class="display-field">
    <a href="@Model.Url">@Model.Url</a>
</div>
<div class="display-label">
    Last Modified</div>
<div class="display-field">
    @Html.DisplayFor(model => model.LastModified)
</div>
<div class="display-label">
    Status</div>
<div class="display-field">
    @if (Model.isGeneric)
    {
        <span class="accent">[generic] </span> 
    }
    @if (!Model.isActive)
    {
        <span class="red">[deleted] </span> 
    }
    else
    {
        <span class="accent">[active] </span> 
    }
    @if (Model.isHome)
    {
        <span class="accent">[home] </span> 
    }
</div>
